export default {
  // treeShaking: true,
  publicPath: './',
  history: { type: 'hash', options: {} },
  // hash: true,
  extraPostCSSPlugins: [
    require('postcss-flexbugs-fixes'),
    require('postcss-px-to-viewport')({
      viewportWidth: 375, // 视窗的宽度，对应的是我们设计稿的宽度，一般是375
      unitPrecision: 1, // 指定`px`转换为视窗单位值的小数位数（很多时候无法整除）
      viewportUnit: 'vw', // 指定需要转换成的视窗单位，建议使用vw
      selectorBlackList: [], // 指定不转换为视窗单位的类，可以自定义，可以无限添加,建议定义一至两个通用的类名
      minPixelValue: 1, // 小于或等于`1px`不转换为视窗单位，你也可以设置为你想要的值
      mediaQuery: true, // 允许在媒体查询中转换`px`
      exclude: /(\/|\\)(node_modules)(\/|\\)/,
    }),
  ],
  antd: {
    dark: false,
    compact: false,
  },
  dva: {
    immer: true,
    hmr: false,
  },
  dynamicImport: false,
  title: 'Chinacycle',
  dll: false,
  locale: {
    default: 'zh-CN',
    antd: false,
    title: false,
    baseNavigator: true,
    baseSeparator: '-',
  },
  routes: [
    {
      path: '/',
      // exact: true,
      component: '../layouts/index',
      routes: [
        { path: '/', redirect: '/index' },
        {
          path: '/index',
          // component: '../pages/index/index',
          routes: [
            {
              path: '/index',
              component: '../pages/index/index',
            },
            {
              path: '/index/details/:id',
              component: '../pages/index/indexDetail',
            },
            {
              path: '/index/exhibitorDetail/:id',
              component: '../pages/index/exhibitorDetail',
            },
          ],
        },
        {
          path: '/indexDetail',
          component: '../pages/index/indexDetail',
        },
        {
          path: '/live',
          component: '../pages/live/index',
        },
        {
          path: '/news',
          routes: [
            {
              path: '/news',
              component: '../pages/news/index',
            },
            {
              path: '/news/details/:id',
              component: '../pages/news/details',
            },
          ],
        },
        {
          path: '/celebration',
          component: '../pages/celebration/index',
        },

        {
          path: '/my',
          component: '../pages/my/index',
        },
        {
          path: '/search',
          component: '../pages/search/index',
        },
        {
          path: '/searchList/:searchWord',
          component: '../pages/search/searchList',
        },
        {
          path: '/likeExhibitionList',
          component: '../pages/likeExhibitionList',
        },
        {
          path: '/likeProductList',
          component: '../pages/likeProductList',
        },
        {
          path: '/likeNewsList',
          component: '../pages/likeNewsList',
        },
        {
          path: '/exhibitionInfo',
          routes: [
            {
              path: '/exhibitionInfo',
              component: '../pages/exhibitionInfo',
            },
            {
              path: '/exhibitionInfo/exhibitionList',
              component: '../pages/exhibitionInfo/exhibitionList',
            },
            {
              path: '/exhibitionInfo/boothLayout',
              component: '../pages/exhibitionInfo/boothLayout',
            },
            {
              path: '/exhibitionInfo/infoPage',
              component: '../pages/exhibitionInfo/infoPage',
            },
            {
              path: '/exhibitionInfo/serviceGuide',
              component: '../pages/exhibitionInfo/serviceGuide',
            },
            {
              path: '/exhibitionInfo/meetingList',
              component: '../pages/exhibitionInfo/meetingList',
            },
            {
              path: '/exhibitionInfo/activityList',
              component: '../pages/exhibitionInfo/activityList',
            },
          ],
        },
        {
          path: '/wantbuy',
          routes: [
            {
              path: '/wantbuy',
              component: '../pages/wantbuyList',
            },
            {
              path: '/wantbuy/detail/:id',
              component: '../pages/wantbuyList/detail',
            },
          ],
        },
        {
          path: '/scheduled',
          component: '../pages/scheduled',
        },
        {
          path: '/scheduled2',
          component: '../pages/scheduled2',
        },
        {
          path: '/exhibitor',
          component: '../pages/exhibitor',
        },
        {
          path: '/meeting',
          component: '../pages/meeting',
        },
        {
          path: '/meeting/:id',
          component: '../pages/meeting/detail',
        },
        {
          path: '/business-match',
          component: '../pages/businessMatch',
        },
        {
          path: '/business-match/:id/:date',
          component: '../pages/businessMatch/apply',
        },
        {
          path: '/business-match/result',
          component: '../pages/businessMatch/result',
        },
        {
          path: '/enterpriseInfo',
          component: '../pages/enterpriseInfo',
        },
        {
          path: '/enterprisePublicity',
          component: '../pages/enterprisePublicity',
        },
      ],
    },
  ],
  headScripts: ['http://res.wx.qq.com/open/js/jweixin-1.6.0.js'],
  // plugins: [
  //   // ref: https://umijs.org/plugin/umi-plugin-react.html
  //   ['umi-plugin-react', {
  //     antd: true,
  //     dva: true,
  //     dynamicImport: false,
  //     title: 'Chinacycle',
  //     dll: false,
  //     fastRefresh: {},
  //     links: [
  //     ],
  //     headScripts: [

  //     ],
  //     scripts: [
  //     ],
  //     routes: {
  //       exclude: [
  //         /models\//,
  //         /services\//,
  //         /model\.(t|j)sx?$/,
  //         /service\.(t|j)sx?$/,
  //         /components\//,
  //       ],
  //     },
  //   }],
  // ],
};
